﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="website_admin_system_regioneditor" Codebehind="regioneditor.aspx.cs" %>

<%@ Register Src="../../admin/_root/_controls/ctlNavBar.ascx" TagName="ctlNavBar"
    TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <script src="../_common/scripts/jquery-1.4.1.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../admin/_static/_jQuery/jquery_validator.js"></script>
    
    <script type="text/javascript" language="javascript" src="../_common/scripts/util.js"></script>

    <link href="../_common/styles/frame_global.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript"> 
    $(document).ready(setup);
    function setup()
    { 
        validator.setup("#crmForm");
    }
    function Cancel()
    {
        var groupid=getUrlParam("groupid");
        window.location.href="regionmagviewer.aspx?groupid="+groupid;
    }
    </script>

</head>
<body>

    <script type="text/javascript">
    <!--
        function __doPostBack(eventTarget) {
            var theForm = document.forms["form1"];
            if (!theForm) {
                theForm = document.crmForm;
            }
            if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
                theForm.__EVENTTARGET.value = eventTarget;
                theForm.submit();
            }
        }
    // -->
    </script>
    <div id="success" style="position: absolute; z-index: 300; height: 130px; width: 284px;
        left: 50%; top: 50%; margin-left: -150px; margin-top: -80px;">
        <div style="position: absolute; z-index: 300; width: 270px; height: 90px; background-color: #FFFFFF;
            border: solid #6699CC 1px; font-size: 14px;">
            <div style="height: 64px; line-height: 150%; padding: 0px 3px 0px 3px;" align="center">
                <br />
                <table>
                    <tr>
                        <td valign="top">
                            <img border="0" src="../_imgs/admin/progress.gif" />
                        </td>
                        <td valign="middle" style="font-size: 14px; width: 150px;">
                            操作执行中 ...<br />
                        </td>
                    </tr>
                </table>
                <br />
            </div>
        </div>
        <div style="position: absolute; width: 270px; height: 108px; z-index: 299; left: 4px;
            top: 5px; background-color: #E8E8E8; border: #E8E8E8 1px solid; display: none;">
        </div>
    </div>
      <script type="text/javascript">
        document.getElementById("success").style.display = "none"; 
    </script>

    <script src="../../admin/_static/_common/scripts/divcover.js" type="text/javascript"></script>
    <form id="crmForm" runat="server">
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <div class="divAreas">
        <div class="boxTopBar">
            <div class="boxTopBarLeft">
                <div class="navBar">
                    <uc1:ctlNavBar ID="ctlNavBar1" runat="server" />
                </div>
            </div>
            <div class="boxTopBarRight">
            </div>
        </div>
        <div class="boxMain">
            <div class="boxMainBody"> 
                <table cellpadding="0" cellspacing="0" class="stdTable" style="width: 98%;">
                    <tbody>
                        <tr style="height: 32px; background: #F0F0F0; padding-left: 10px; font-weight: bold; text-align: left;">
                            <td>
                                编辑地区信息
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" style="padding: 5px 5px 5px;">
                                <div style="overflow-y: scroll; overflow-x: hidden; height: 100%; margin-left: auto;
                                    margin-right: auto; padding: 10px 20px 10px 20px; width: 100%">
                                    <table class="tbsToolsBar" cellpadding="0" cellspacing="0" align="center" style="width: auto;">
                                        <colgroup>
                                            <col />
                                        </colgroup>
                                        <tbody>
                                            <tr>
                                                <td style="text-align: center;">
                                                    <table cellpadding="1" cellspacing="1" style="border: 0px; table-layout: fixed; width: 620px;
                                                        font-size: 12px;">
                                                        <colgroup>
                                                            <col style="width: 85px;" />
                                                            <col />
                                                            <col style="width: 85px; text-align: right;" />
                                                            <col />
                                                        </colgroup>
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    地区名称：
                                                                </td>
                                                                <td>
                                                                    <input type="text" class="tbxReadOnly" id="txtRegionName" name="txtRegionName"
                                                                        runat="server" required="required" controlname="类别名称" isvalidator />
                                                                </td>
                                                                <td>
                                                                    英文名称：
                                                                </td>
                                                                <td>
                                                                    <input type="text" class="tbxReadOnly" id="txtRegionNameEng" name="txtRegionNameEng"
                                                                        runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    上级地区：
                                                                </td>
                                                                <td colspan="3">
                                                                    <select id="selParentList" runat="server" class="SelectBox">
                                                                        <option value="0">-- 作为一级节点 --</option>
                                                                    </select>
                                                                    <input type="hidden" id="txtOriginalParentId" name="txtOriginalParentId" runat="server" />
                                                                </td>
                                                            </tr> 
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr style="height: 35px;">
                            <td class="WIN-Form-Bottom">
                                <input type="button" value="保存信息" id="btnSave" class="btn_s" onclick="if(validator.validatorAll()){this.disabled=true;success.style.display = 'block';HideOverSels('success');__doPostBack('save');}"
                                    style="width: 120px; height: 25px; margin: 0px 5px;" />
                                <input type="button" value="返回列表" id="btnCancel" class="btn_s" onclick="Cancel();"
                                    style="height: 25px; width: 120px; margin: 0px 5px;" />
                            </td>
                        </tr>
                    </tbody>
                </table> 
            </div>
        </div>
        <div class="boxBottomBar">
            <div class="boxBottomBarLeft">
                &nbsp;
            </div>
            <div class="boxBottomBarRight">
                &nbsp;
            </div>
        </div>
    </div>
    </form>
</body>
</html>
